<?php
/*=============================================================================
|| ##################################################################
||	phpFoX Konsort
|| ##################################################################
||
||	Copyright		: (C) 2005-2007 PHPFOX Limited a Reality Fox Creation
||	Contact			: info@phpfox.com
||
||	- phpFoX and all of its source code and files are protected by Copyright Laws.
||
||	- The license for phpFoX permits you to install this software on a single domain (.com, .org, .net, etc.).
||
||	- You may also not remove this copyright screen which shows the copyright information and credits for phpFoX (RealityFOX Creations).
||
||	- phpFoX Konsort is NOT a FREE software - http://www.phpfox.com/license/
||
|| ##################################################################
=============================================================================*/

/* $File: ./site/public/account/_pre.php, $Author:  $ */

$oSrvSec = &App::getModuleService('Account', 'Security');
if ( !ereg('account\.messenger', App::getPage()) && !ereg('account\.livechat', App::getPage()) )
{
	App::membersOnly();
}

$oTpl = &App::getTemplate();
$oTplMenu = &App::getTemplate();
$oTplMenu->assign('sUser',App::getUser('user'));
$oTpl->assignSrc(array(
	'bCrush' => !($oSrvSec->checkAccess('crush', '', false)) ? false :true,
	'plugin_settings_links' => phpFoXPlugins::create_sub_links('settings_links'),
	'plugin_submit_links' => phpFoXPlugins::create_sub_links('submit_links'),
	'plugin_myitems_links' => phpFoXPlugins::create_sub_links('myitems_links'),
	'srcTabbedMenuDesc' => $oTplMenu->fetch('public/account/_menu.html')
));

?>